package org.diffshop.product.feign;

import org.diffshop.common.to.SkuFullReductionTO;
import org.diffshop.common.to.SpuBoundTO;
import org.diffshop.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author:tjf
 * @Description:
 */
@FeignClient(value = "diffshop-coupon", path = "/coupon")
//@RequestMapping("/coupon") // 仿照sentinel 行不通
public interface CouponFeignService {
    @PostMapping("/smsspubounds/save")
    R saveSpuBoundInfo(@RequestBody SpuBoundTO spuBoundTO);
    @PostMapping("/smsskufullreduction/save/skufullrelation")
    R saveSkuFullReduction(@RequestBody SkuFullReductionTO skuFullReductionTO);
}
